<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JS与iOS交互</title>
    <script type="text/javascript">
        function secondClick(){
            scan();
        }
        function sendClick(){
            send('我传一些东西过来');
        }
        function setBackGround(color){
            document.getElementById(color).value = color;
        }
        function setColor(){
            setColor(80,80,80,1);
        }
    </script>
</head>
<body bgcolor="aqua">
<button type="button" onclick="secondClick()">Click me!</button>
<button type="button" onclick="sendClick()">Send text!</button>
<input type="button" onclick="native.callIos('回调')" value="reback"></input>
<input type="button" onclick="native.presentViewController('ViewController');" value="下一页"></input>
<a href="1.html">点击我</a>
<br>
<h1>回调</h1>
<textarea id="send" type="value" rows="5" cols="50">

</textarea>
</body>
</html>
